SFS_DBOP_CPPFILE = SFSDBOperation.cpp
SFS_DBOP_TARGET = ../../../../lib/libsfs_dbop.so 
TARGETS = $(SFS_DBOP_TARGET)
SFS_DBOP_OBJFILE = $(patsubst %.cpp, %.o, $(SFS_DBOP_CPPFILE))
CXX = g++
INC_DIR = -I../../../../3party/log4cxx/include -I../include -I../../../sutil/include -I../../../../3party/mysql/include \
		  -I../../common/include -I../../../smysql/include

LIBS = 

CXXFLAGS = -g -Wall -O2

.PHONY : all

all: $(TARGETS) 

$(SFS_DBOP_TARGET): $(SFS_DBOP_OBJFILE)
	        $(CXX) --share $(CXXFLAGS) $^ $(LIBS) -o $@

%.o : %.cpp
	        $(CXX) -c $(CXXFLAGS) $(INC_DIR) $< -o $@

.PHONY : clean

clean:
	        rm -f *.o $(TARGETS)
